import Vue from 'vue'
import Element from 'element-ui'
import '@/assets/styles/index.less'

import App from './App'
import router from './router'
import store from './store'
import directive from './directive'
import i18n from './components/i18n'
import './components/svg'

window.document.title = process.env.NAME

Vue.use(Element, {
  i18n: (key, value) => i18n.t(key, value)
})
Vue.use(directive)

// 阻止显示生产模式的消息
Vue.config.productionTip = false

// eslint-disable-next-line no-new
new Vue({
  el: '#app',
  router,
  i18n,
  store,
  render: (h) => h(App)
})
